// TotalsWhiteboard
//
// This class represents the whiteboard space total aggregated data across all the clerks.
// This will include total tickets in the theater, money gained by clerks and theater, other useful stats, ect.
// It will be protected by a monitor and be maintained by all the clerks and read by the manager
// to make reports.
//

class TotalsWhiteboard {
  public:
    TotalsWhiteboard();			// Initialize the TotalsWhiteboard object
    ~TotalsWhiteboard();			// De-allocate TotalsWhiteboard
    
    int getAvailableTickets(); 		// returns number of tickets that can be sold before the next showing
    int getTotalTicketsSold(); 		// returns total number of tickets sold by the theater
	int getTicketClerkRevenue(int clerkID);
	int getFoodClerkRevenue(int clerkID);
	int getTotalRevenue();
	
	void setAvailableTickets(int avail); 		// sets the number of tickets that can be sold before the next showing
    void setTotalTicketsSold(int tickets); 	// sets the total number of tickets sold by the theater
	
	void incrementFoodRevenue(int clerkID, int value);
	void incrementTicketRevenue(int clerkID, int value);
	
  private:
    int availableTickets;		// number of tickets that can be sold before the next showing
	int totalTicketsSold;		// total number of tickets sold by the theater
	int totalRevenue;
	int totalFoodRevenue;
	int totalTicketRevenue;
	int* ticketClerkRevenue;
	int* foodClerkRevenue;
};
